package test;

public class Computer extends Electron implements Features{

    @Override
    public void connect(Electron e) {
        if(e instanceof PHS){
             throw new RuntimeException("不能连接PHS");
        }
        super.startup();
        System.out.println("与"+e.getClass().getSimpleName()+"连接");
    }
}
